package es.us.lsi.aws.api.server;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public abstract class Controller {

	public abstract void processRequest(HttpServletRequest req,
			HttpServletResponse res);

	public static void processRequestStatic(Class<?> targetClass,
			HttpServletRequest req, HttpServletResponse res)
			throws InstantiationException, IllegalAccessException {

		Controller instance = ControllerFactory
				.getControllerInstance(targetClass);

		instance.processRequest(req, res);
	}

}
